package com.chookss.tiku.entity;

/**
 * Company:
 * Project:
 * Author: liuhaoge
 * Date: 2020/12/24 13:25
 * Note:
 */
public class LiveResult<T> {
    public final Error error;
    public final T data;

    public LiveResult(T data) {
        this.error = null;
        this.data = data;
    }

    public LiveResult(Error error) {
        this.error = error;
        this.data = null;
    }
}
